package com.lucky.ebidding.service.interfaces;

import com.lucky.ebidding.dto.NotificationDTO;

import java.util.List;

/**
 * ClassName:NotificationServiceI
 * Package:com.lucky.ebidding.service
 * Description:
 *
 * @Date:2020/4/28 15:30
 * @Author:857251389@qq.com
 */
public interface NotificationServiceI {
//    /**
//     * 查询接收人为自己的未读通知
//     * @param receiver
//     * @return
//     */
//    List<NotificationDTO> selectUnReadByReceiver(Integer receiver);
//
//    /**
//     * 查询接收人为自己的已读通知
//     * @param receiver
//     * @return
//     */
//    List<NotificationDTO> selectReadByReceiver(Integer receiver);

    /**
     * 发送通知
     * @param receiver
     * @param notificator
     * @param type
     * @param zbId
     * @param args 可变参数 用来判断content里的内容
     */
   void sendNotification(Integer receiver,Integer notificator,Integer type,Integer zbId ,String... args);

   void sendShNotification(Integer receiver,Integer notificator,Integer type,String... args);


    List<NotificationDTO> selectNotificationByReceiver(Integer receiver, Integer status);

    int setStatusRead(Integer notificationId);
}
